package a17_state;

public class LIftStopState extends LiftState {
	public LIftStopState() {
		this.setState(StateEnum.STOP);
	}

	@Override
	public void run() {
		System.out.println("start run!");
		this.setState(StateEnum.RUN);
	}

	@Override
	public void stop() {
		System.out.println("already stop");
		this.setState(StateEnum.STOP);
	}

	@Override
	public void close() {
		System.out.println("close the lift");
		this.setState(StateEnum.CLOSE);
	}

	@Override
	public void open() {
		System.out.println("open the lift");
		this.setState(StateEnum.OPEN);

	}

}
